package com.mxx.pmxt.service;

import com.mxx.pmxt.model.GoodsModel;
import com.mxx.pmxt.model.pojo.AfterCheckByUserModel;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by 马潇霄 on 2017/4/18.
 */
public interface GoodsService
{
    int createGoods(String owner,String name, BigDecimal price,String detail,String picture,int kindid);

    List<GoodsModel> getBeforeCheckGoodsByUserByPage(String uname,int startRow,int pageSize);

    int countBeforeGoodsByUser(String uname);

    List<GoodsModel> getFalseCheckGoodsByUserByPage(String uname,int startRow,int pageSize);

    int countFalseGoodsByUser(String uname);

    List<AfterCheckByUserModel> getAfterCheckGoodsByUserByPage(String uname, int startRow, int pageSize);

    int countAfterGoodsByUser(String uname);

    List<AfterCheckByUserModel> getEndCheckGoodsByUserByPage(String uname,int startRow,int pageSize);

    int countEndGoodsByUser(String uname);

    List<GoodsModel> getBeforeCheckGoodsByPage(int startRow,int pageSize);

    int countBeforeGoods();

    List<GoodsModel> getAfterCheckGoodsByPage(int startRow,int pageSize);

    int countAfterGoods();

    List<GoodsModel> getFalseCheckGoodsByPage(int startRow,int pageSize);

    int countFalseGoods();

    List<GoodsModel> getEndCheckGoodsByPage(int startRow,int pageSize);

    int countEndGoods();

    int checkTrueGoods(int gid);
    //商品审核通过（状态码从0——>1）

    int checkFalseGoods(int gid);
    //商品审核不通过（状态码从0——>3）

    List<GoodsModel> getAfterCheckGoodsByPageBykinds(int startRow,int pageSize,int kindid);

    int countAfterGoodsByKinds(int kindid);

    GoodsModel selectGoodModelByGid(int gid);

    List<GoodsModel> selectAfterByPageByName(String gname,int startRow,int pageSize);

    int countSelectAfterByName(String gname);
}
